<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>欢迎加入我们的社群</title>
    <script src="https://cdn.tailwindcss.com/3.3.3"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css">
    <style>
        body {
            min-height: 100vh;
            color: white;
            font-family: 'Noto Sans SC', sans-serif;
            background-color: #0f172a;
        }
        .card {
            transition: all 0.3s ease;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
        }
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        }
        .image-placeholder {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(255, 255, 255, 0.7);
        }
        #fireworks-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            pointer-events: none;
        }
    </style>
</head>
<body class="flex flex-col items-center justify-center p-4 md:p-8 min-h-screen">
    <canvas id="fireworks-canvas"></canvas>
    
    <div class="max-w-4xl w-full my-8">
        <h1 class="text-3xl md:text-4xl font-bold text-center mb-8">云电脑白嫖探讨基地</h1>
        
        <div class="flex flex-col md:flex-row gap-8">
            <!-- 微信群二维码区域 -->
            <div class="card flex-1 rounded-2xl p-6">
                <div class="image-placeholder aspect-square mb-4">
                    <img src="1.jpg" alt="微信群二维码" class="w-full h-full object-cover rounded-lg" onerror="this.src='data:image/svg+xml;charset=UTF-8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22200%22 height=%22200%22 viewBox=%220 0 200 200%22%3E%3Crect fill=%22%23dddddd%22 width=%22200%22 height=%22200%22/%3E%3Ctext fill=%22%23aaaaaa%22 font-family=%22Arial, sans-serif%22 font-size=%2216%22 dy=%22.3em%22 text-anchor=%22middle%22 x=%22100%22 y=%22100%22%3E图片即将添加%3C/text%3E%3C/svg%3E'">
                </div>
                <p class="text-center text-white text-opacity-90">扫描二维码加入微信群</p>
            </div>
            
            <!-- 客服图片区域 -->
            <div class="card flex-1 rounded-2xl p-6">
                <div class="image-placeholder aspect-square mb-4">
                    <img src="2.jpg" alt="客服图片" class="w-full h-full object-cover rounded-lg" onerror="this.src='data:image/svg+xml;charset=UTF-8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22200%22 height=%22200%22 viewBox=%220 0 200 200%22%3E%3Crect fill=%22%23dddddd%22 width=%22200%22 height=%22200%22/%3E%3Ctext fill=%22%23aaaaaa%22 font-family=%22Arial, sans-serif%22 font-size=%2216%22 dy=%22.3em%22 text-anchor=%22middle%22 x=%22100%22 y=%22100%22%3E图片即将添加%3C/text%3E%3C/svg%3E'">
                </div>
                <p class="text-center text-white text-opacity-90 mb-2">添加群主微信</p>
                <p id="beijing-time" class="text-center text-white text-sm mt-2"></p>
            </div>
        </div>
    </div>

    <script>
        // 更新北京时间
        function updateBeijingTime() {
            const now = new Date();
            const year = now.getFullYear();
            const month = String(now.getMonth() + 1).padStart(2, '0');
            const day = String(now.getDate()).padStart(2, '0');
            const hours = String(now.getHours()).padStart(2, '0');
            const minutes = String(now.getMinutes()).padStart(2, '0');
            const seconds = String(now.getSeconds()).padStart(2, '0');
            document.getElementById('beijing-time').textContent = `北京时间 ${year}年${month}月${day}日 ${hours}:${minutes}:${seconds}`;
        }
        
        // 烟花动画
        document.addEventListener('DOMContentLoaded', function() {
            const canvas = document.getElementById('fireworks-canvas');
            const ctx = canvas.getContext('2d');
            
            // 设置canvas尺寸为窗口大小
            function resizeCanvas() {
                canvas.width = window.innerWidth;
                canvas.height = window.innerHeight;
            }
            resizeCanvas();
            
            // 烟花数组
            const fireworks = [];
            const particles = [];
            const colors = ['#ff0000', '#ffff00', '#00ff00', '#00ffff', '#0000ff', '#ff00ff'];
            
            // 烟花类
            class Firework {
                constructor() {
                    this.x = Math.random() * canvas.width;
                    this.y = canvas.height;
                    this.targetY = Math.random() * canvas.height * 0.5;
                    this.speed = 2 + Math.random() * 3;
                    this.radius = 2;
                    this.color = colors[Math.floor(Math.random() * colors.length)];
                    this.alive = true;
                }
                
                update() {
                    this.y -= this.speed;
                    
                    // 到达目标高度时爆炸
                    if (this.y <= this.targetY) {
                        this.explode();
                        this.alive = false;
                    }
                }
                
                explode() {
                    // 创建爆炸粒子
                    const particleCount = 80 + Math.floor(Math.random() * 50);
                    for (let i = 0; i < particleCount; i++) {
                        particles.push(new Particle(this.x, this.y, this.color));
                    }
                }
                
                draw() {
                    ctx.beginPath();
                    ctx.arc(this.x, this.y, this.radius, 0, Math.PI * 2);
                    ctx.fillStyle = this.color;
                    ctx.fill();
                    
                    // 拖尾效果
                    ctx.beginPath();
                    ctx.moveTo(this.x, this.y);
                    ctx.lineTo(this.x, this.y + 10);
                    ctx.strokeStyle = this.color;
                    ctx.lineWidth = 1;
                    ctx.stroke();
                }
            }
            
            // 粒子类
            class Particle {
                constructor(x, y, color) {
                    this.x = x;
                    this.y = y;
                    this.color = color;
                    this.radius = 1 + Math.random() * 2;
                    this.speed = {
                        x: -2 + Math.random() * 4,
                        y: -2 + Math.random() * 4
                    };
                    this.alpha = 1;
                    this.decay = 0.01 + Math.random() * 0.02;
                    this.life = 1;
                }
                
                update() {
                    this.x += this.speed.x;
                    this.y += this.speed.y;
                    this.speed.y += 0.05; // 重力
                    this.alpha -= this.decay;
                    this.life -= this.decay;
                }
                
                draw() {
                    ctx.save();
                    ctx.globalAlpha = this.alpha;
                    ctx.beginPath();
                    ctx.arc(this.x, this.y, this.radius, 0, Math.PI * 2);
                    ctx.fillStyle = this.color;
                    ctx.fill();
                    ctx.restore();
                }
            }
            
            // 动画循环
            function loop() {
                // 半透明黑色背景实现拖尾效果
                ctx.fillStyle = 'rgba(15, 23, 42, 0.2)';
                ctx.fillRect(0, 0, canvas.width, canvas.height);
                
                // 随机添加新烟花
                if (Math.random() < 0.03) {
                    fireworks.push(new Firework());
                }
                
                // 更新并绘制烟花
                for (let i = fireworks.length - 1; i >= 0; i--) {
                    fireworks[i].update();
                    fireworks[i].draw();
                    
                    if (!fireworks[i].alive) {
                        fireworks.splice(i, 1);
                    }
                }
                
                // 更新并绘制粒子
                for (let i = particles.length - 1; i >= 0; i--) {
                    particles[i].update();
                    particles[i].draw();
                    
                    if (particles[i].life <= 0) {
                        particles.splice(i, 1);
                    }
                }
                
                requestAnimationFrame(loop);
            }
            
            // 窗口大小改变时重置canvas尺寸
            window.addEventListener('resize', function() {
                resizeCanvas();
            });
            
            // 启动动画
            loop();
            
            // 更新时间
            updateBeijingTime();
            setInterval(updateBeijingTime, 1000);
        });
    </script>
</body>
</html>